{% extends 'base.html' %}
{% block title %}
    <title>注册</title>
{% endblock %}

{% block body %}
<!--    <p>{{ cs }}</p>-->
<!--    {% for b in cs %}-->
<!--        {{ b }}-{{ forloop.first }}-->
<!--    {% endfor %}-->


    <h1>这是注册页</h1>
<form method="post">
  {% csrf_token %}
  <div class="form-group">
    <label for="username">用户名</label>
    <input name="username" type="text" class="form-control" id="username" placeholder="请输入用户名">
  </div>
  <div class="form-group">
    <label for="password">密码</label>
    <input name="password" type="password" class="form-control" id="password" placeholder="请输入密码">
  </div>
  <div class="form-group">
    <label for="repassword">确认密码</label>
    <input name="repassword" type="password" class="form-control" id="repassword" placeholder="请再次输入密码">
  </div>
  <div class="form-group">
    {% if error %}
      <p class="text-danger">{{ error }}</p>
    {% endif %}
  </div>
  <button type="submit" class="btn btn-default">注册</button>
    <a class="btn btn-default" href="login" role="button">已有账号，点击去登录</a>
</form>



{% endblock %}